<!--
 * @Date: 2023-01-10 10:45:01
 * @LastEditTime: 2023-03-18 10:24:12
 * @FilePath: /hua-fei-chong-zhi/src/App.vue
 * 介绍:
-->
<script setup lang="ts">
import { vantThemeVars } from "@@/common/ts/init";
import pageView from "./layout/pageView.vue";
import changeLang from "./hooks/changeLang";
import useSysStore from "@@/store/useSysStore";
import { getCurrentHrefQueryParam } from "./utils/tools/tools";

const sysStore = useSysStore();
const query = getCurrentHrefQueryParam();

sysStore.login(query);
changeLang(sysStore.setting.language);
</script>

<template>
  <!-- vant 全局配置 -->
  <van-config-provider theme="light" :theme-vars="vantThemeVars">
    <pageView />
  </van-config-provider>
</template>

<style lang="less">
@import url(@@/common/css/effects.less);
@import url(@@/common/css/layout.less);
@import url(@@/common/css/transition.less);
@import url(@@/common/css/text.less);
@import url(@@/common/css/color.less);
@import url(@@/common/css/init.css);
@import url(@@/common/css/var.css);
//vant 样式重置
@import url(@@/common/css/vant-reset.less);
//icon
@import url(@@/assets/font-icon/iconfont.css);
</style>
